package com.tech.enumration;


/**
* @Title RespCodeEnum.java
* @Description TODO
* 定义系统全局响应码
* @author willard
* @date 2018年5月28日 上午10:28:10
* @version V1.0
*/
public enum RespCodeEnum {

    SUCCESS("0000", "成功"),
    FAIL_BUSSINESS("9998", "业务异常失败"),
    FAIL_SYSTEM("9999", "系统异常失败");


    private final String code;
    private final String msg;


    private RespCodeEnum(String _code, String _msg) {
        this.code = _code;
        this.msg = _msg;
    }

    public String getMsg() {
        return this.msg;
    }

    public String getCode() {
        return this.code;
    }
}
